package com.myphoto.base.log.vo;

import com.myphoto.base.util.Groups;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class SysLogVO {

	@NotNull(message = "日志ID不能为空！",groups = {Groups.QueryById.class,Groups.Update.class,Groups.Delete.class,Groups.QueryAllParams.class})
	@ApiModelProperty(value = "日志ID")
	private String id;
	@ApiModelProperty(value = "日志类型（DEBUG、INFO、WARN、ERROR）")
	private String logType;
	@ApiModelProperty(value = "系统模块")
	private String module;
	@ApiModelProperty(value = "操作人")
	private String operator;
	@ApiModelProperty(value = "日志内容")
	private String content;
	@ApiModelProperty(value = "IP地址")
	private String ip;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "记录时间（yyyy-MM-dd）")
	private Date logTime;

}
